//
//  SDBreakFaskShopViewController.m
//  JackDeve
//
//  Created by Agensn on 2017/5/15.
//  Copyright © 2017年 wkq. All rights reserved.
//

#import "SDBreakFaskShopViewController.h"

@interface SDBreakFaskShopViewController ()

@end

@implementation SDBreakFaskShopViewController

-(void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBarHidden = YES;

}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    
    self.view = [[BreakfastBarsView alloc]initWithFrame:SCREEN_BOUNDS];
    [self nav];

    [[BreakFastModel model]getBreakFastData];
}

-(void)nav{
    UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(15, 25, 40, 40)];
    [btn setImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}
-(void)back{
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
